package io.dshubs.service;


import io.dshubs.commons.mybatis.service.BaseService;
import io.dshubs.entity.SysUserArchiveCategory;

import java.util.List;

/**
 * @Author: yu
 * @Date: 2021/08/18/11:39
 */
public interface SysUserArchiveCategoryService extends BaseService<SysUserArchiveCategory> {

    /**
     * 保存或修改
     *
     * @param userId       用户id
     * @param categoryIdList 分类idList
     */
    void saveOrUpdate(Long userId, List<Long> categoryIdList);

    /**
     * 根据租户id删除
     *
     * @param userId 用户id
     */
    void deleteByUserId(Long userId);

    /**
     *  list
     * @return List
     */
    List<Long> list();

    /**
     *
     * @param id
     * @return
     */
    List<Long> getArchiveCategoryIdList(Long id);
}
